#include "animWidget.h"

#include <QGroupBox>
#include <QSlider>
#include <QLineEdit>
#include <QLayout>
#include <QLabel>

animWidget::animWidget(QWidget* parent) : QWidget(parent)
{
	//create the group box
	_group = new QGroupBox("Animation", this);

	//main layout
	QVBoxLayout* mainLayout = new QVBoxLayout(this);
	mainLayout->addWidget(_group);

	//create the slider
	_slider = new QSlider();
	_slider->setOrientation(Qt::Horizontal);

	//create the input box
	_timeEdit = new QLineEdit();

	//create the label
	_labelTime = new QLabel("Seconds");

	//create layout
	QGridLayout* layout = new QGridLayout(_group);
	layout->addWidget(_slider, 0, 0, 1, 1);
	layout->addWidget(_timeEdit, 0, 1, 1 ,1);
	layout->addWidget(_labelTime, 0, 2, 1, 1);
	layout->setColumnStretch(0, 1);
}

animWidget::~animWidget()
{
}